package com.aizhixin.lab.task.repository;

import com.aizhixin.lab.task.entity.ReleaseTaskQuestion;

import java.util.List;

import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ReleaseTaskQuestionRepository extends JpaRepository<ReleaseTaskQuestion, String> {
	ReleaseTaskQuestion findByIdAndDeleteFlag(String id, Integer deleteFlag);

	ReleaseTaskQuestion findByReleaseTaskIdAndOrderNumAndDeleteFlag(String releaseTaskId, Integer orderNum,
			Integer deleteFlag);
	Integer countByReleaseTaskIdAndDeleteFlag(String releaseTaskId,Integer deleteFlag);
	List<ReleaseTaskQuestion> findByReleaseTaskIdAndDeleteFlagOrderByOrderNumAsc(String releaseTaskId,
			Integer deleteFlag);

	List<ReleaseTaskQuestion> findByReleaseTaskIdAndQuestionTypeAndDeleteFlag(String releaseTaskId, Integer QuestionType,
			Integer deleteFlag);

	List<ReleaseTaskQuestion> findByReleaseTaskIdInAndDeleteFlag(List<String> releaseTaskIds, Integer deleteFlag);
}
